package by.kniazhych.core.events {
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Boutylin Mikhail
	 */
	public class PeaceSelectionEvent extends Event {
		
		public static const PEACE_SELECTED:String = "peaceSelected";
		
		private var _peaceType:uint;
		
		
		public function PeaceSelectionEvent(type:String, peaceType:uint, bubbles:Boolean=false, cancelable:Boolean=false) { 
			super(type, bubbles, cancelable);
			_peaceType = peaceType;
			
		} 
		
		public override function clone():Event { 
			return new PeaceSelectionEvent(type, peaceType, bubbles, cancelable);
		} 
		
		public override function toString():String { 
			return formatToString("PeaceSelectionEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
		public function get peaceType():uint { return _peaceType; }
		
	}
	
}